{extend name='public/layer_base' /}
{block name='content'}
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-row">
                <form class="layui-form" method="post">

                    <div id="role_access"></div>
                    <div class="layui-form-item">
                      <label for="L_repass" class="layui-form-label"></label>
                      <button class="layui-btn" lay-filter="submit" id="submit" lay-submit="submit"
                          type="button">保存</button>
                  </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use('tree', function(){
      var tree = layui.tree;
     
      //渲染
      var inst1 = tree.render({
        elem: '#role_access'  //绑定元素
        ,data:JSON.parse('{$html|raw}')
        ,showCheckbox:true
      });
    });
    </script>
{/block}